package com.jackstraw.jack_base.datasource.mybatis.entity.po;

import com.jackstraw.jack_base.datasource.mybatis.base.entity.po.MyBatisPo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author jack 945514650@qq.com
 * @since version:1.0 generatorDate:2022-05-13 22:35:17
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class AaaaKeyPo<PO extends AaaaKeyPo<PO>> extends MyBatisPo<PO> {

    private Integer b;

    private Integer a;

    @Override
    public List<String> idFieldNameS() {
        List<String> fieldNameS = new ArrayList<>();
        fieldNameS.add("b");
        fieldNameS.add("a");
        return fieldNameS;
    }

    @Override
    public List<String> idColumnNameS() {
        List<String> idColumnNameS = new ArrayList<>();
        idColumnNameS.add("b");
        idColumnNameS.add("a");
        return idColumnNameS;
    }

    @Override
    public String tableName() {
        return "aaaa";
    }


    @Override
    public Map<String, String> fieldColumnNameMap() {
        Map<String, String> fieldColumnNameMap = new HashMap<>();
        fieldColumnNameMap.put("b", "b");
        fieldColumnNameMap.put("a", "a");
        fieldColumnNameMap.put("c", "c");
        fieldColumnNameMap.put("d", "d");
        fieldColumnNameMap.put("e", "e");
        return fieldColumnNameMap;
    }
}